package com.wyq.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wyq.bean.AdminMenu;
import com.wyq.service.AdminMenuService;

public class AdminFindMenuAction extends ActionSupport{
	private AdminMenuService adminMenuService;
	private List menuList;
	

	public List getMenuList() {
		return menuList;
	}

	public void setMenuList(List menuList) {
		this.menuList = menuList;
	}

	public AdminMenuService getAdminMenuService() {
		return adminMenuService;
	}

	public void setAdminMenuService(AdminMenuService adminMenuService) {
		this.adminMenuService = adminMenuService;
	}

	@Override
	public String execute() throws Exception {
		List<AdminMenu> adminMenuList = adminMenuService.findParentMenu();
		//System.out.println("1111111111111--------" + adminMenuList);
		menuList = adminMenuList;
		//Map request = (Map)ActionContext.getContext().get("request");
		
		//request.put("parentmenulist", parentMenuList);
		//request.put("submenulist", subMenuList);
		return SUCCESS;
		
	}

}
